package teste;

import impl.repository.StubAddresRepositoryImpl;
import impl.repository.StubProductApparelRepositoryImpl;

import javax.swing.JOptionPane;

import domain.Address;
import domain.ProductApparel;
import exception.InvalidCepException;

public class Teste {
	
	
	public static void main(String args[]) throws InvalidCepException{
		
		Address address = new Address
				(0,
				 "Rua 20", 
				 "Jaboatao",
				 "Pernambuco",
				 "54410-250",
				 "Andar 5"
				 );
				
		Address addressAnt = new Address
				(1,
				 "Rua 10", 
				 "Recife",
				 "Pernambuco",
				 "54410-250",
				 "Andar 2"
				 );
				
				StubAddresRepositoryImpl sar = new StubAddresRepositoryImpl();
				boolean resposta = sar.edit(addressAnt,address);
				if(resposta){
					JOptionPane.showMessageDialog(null, "Endereco cadastrado com sucesso!!!");
				}
				
				
	}
				

}
